//
//  UIView+Extension.h
//  JKFloatingBox
//
//  Created by 王冲 on 2019/9/18.
//  Copyright © 2019 王冲. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Extension)

@property (nonatomic) CGFloat jk_x;
@property (nonatomic) CGFloat jk_y;
@property (nonatomic) CGFloat jk_width;
@property (nonatomic) CGFloat jk_height;
@property (nonatomic) CGFloat jk_centerX;
@property (nonatomic) CGFloat jk_centerY;
@property (nonatomic) CGPoint jk_origin;
@property (nonatomic) CGSize jk_size;
@property (nonatomic) CGFloat jk_top;
@property (nonatomic) CGFloat jk_left;
@property (nonatomic) CGFloat jk_bottom;
@property (nonatomic) CGFloat jk_right;

/**
 给继承于view的类添加 四周 阴影
 
 @param shadowRadius 阴影半径
 @param theColor 阴影的颜色
 @param size 阴影的偏移度：CGSizeMake(X[正的右偏移,负的左偏移], Y[正的下偏移,负的上偏移]);
 @param opacity 阴影的透明度
 */
- (void)cy_addShadowToViewShadowRadius:(CGFloat)shadowRadius withCornerRadius:(CGFloat)cornerRadius withColor:(UIColor *)theColor withShadowOffset:(CGSize)size withShadowOpacity:(float)opacity withIsClipsCorner:(BOOL)isClipsCorner;

@end

NS_ASSUME_NONNULL_END
